<include file="public:header" />
<include file="public:left" />
<style>
    .ncm-goods-gift {
        text-align: left;
    }
    .ncm-goods-gift ul {
        display: inline-block;
        font-size: 0;
        vertical-align: middle;
    }
    .ncm-goods-gift li {
        display: inline-block;
        letter-spacing: normal;
        margin-right: 4px;
        vertical-align: top;
        word-spacing: normal;
    }
    .ncm-goods-gift li a {
        background-color: #fff;
        display: table-cell;
        height: 30px;
        line-height: 0;
        overflow: hidden;
        text-align: center;
        vertical-align: middle;
        width: 30px;
    }
    .ncm-goods-gift li a img {
        max-height: 30px;
        max-width: 30px;
    }

    a.green{

        background: #fff none repeat scroll 0 0;
        border: 1px solid #f5f5f5;
        border-radius: 4px;
        color: #999;
        cursor: pointer !important;
        display: inline-block;
        font-size: 12px;
        font-weight: normal;
        height: 20px;
        letter-spacing: normal;
        line-height: 20px;
        margin: 0 5px 0 0;
        padding: 1px 6px;
        vertical-align: top;
    }

    a.green:hover { color: #FFF; background-color: #1BBC9D; border-color: #16A086; }

    .ncap-order-style .ncap-order-details{
        margin:20px auto;
    }
    .contact-info h3,.contact-info .form_class{
        display: inline-block;
        vertical-align: middle;
    }
    .form_class i.fa{
        vertical-align: text-bottom;
    }
</style>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.go(-1)" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>订单</h3>
                <h5>交易订单查询及管理</h5>
            </div>

        </div>

    </div>
    <div class="ncap-order-style">
        <div class="titile">
            <h3></h3>
        </div>

        <div class="ncap-order-details">
            <form id="order-action">
                <div class="tabs-panels">
                    <div class="misc-info">
                        <h3>基本信息</h3>
                        <dl>
                            <dt>订单 ID：</dt>
                            <dd>{$order.id}</dd>
                            <dt>订单号：</dt>
                            <dd>{$order.order_sn}</dd>
                            <dt>会员：</dt>
                            <dd>{$order.nickname}</dd>
                        </dl>
                        <dl>
                            <dt>电话：</dt>
                            <dd>{$order.mobile}</dd>
                            <dt>订单类型：</dt>
                            <dd><switch name="$order['type']" value="1">
                                <case value="1"><span style="color: red">预约</span></case>
                                <case value="2"><span style="color: red">送</span></case>
                                <case value="3"><span style="color: red">扫码</span></case>
                            </switch></dd>
                            <dt>订单状态：</dt>
                            <dd>
                                <switch name="$order['status']" value="1">
                                    <case value="0"><span style="color: red">待支付</span></case>
                                    <case value="1"><span style="color: red">待处理</span></case>
                                    <case value="2"><span style="color: red">待完成</span></case>
                                </switch>
                            </dd>
                        </dl>
                        <dl>
                            <dt>下单时间：</dt>
                            <dd>{$order.create_time|date='Y-m-d H:i',###}</dd>
                            <dt>支付时间：</dt>
                            <dd>
                                <if condition="$order.pay_time neq 0">{$order.pay_time|date='Y-m-d H:i',###}
                                    <else/>
                                    N
                                </if>
                            </dd>
                            <dt>处理时间：</dt>
                            <dd>
                                <if condition="$order.update_time neq 0">{$order.update_time|date='Y-m-d H:i',###}
                                    <else/>
                                    N
                                </if>
                            </dd>
                        </dl>
                        <dl>
                            <dt>完成时间：</dt>
                            <dd>
                                <if condition="$order.finish_time neq 0">{$order.finish_time|date='Y-m-d H:i',###}
                                    <else/>
                                    N
                                </if>
                            </dd>
                            <dt>预约时间：</dt>
                            <dd>
                                <if condition="$order.book_time neq 0">{$order.book_time|date='Y-m-d H:i',###}
                                    <else/>
                                    N
                                </if>
                            </dd>
                            <dt>支付方式：</dt>
                            <dd>{$order.pay_type|default='其他方式'}</dd>
                        </dl>
                        <dl>
                            <dt>备注：</dt>
                            <dd style="color: red">{$order.preference|default=''}</dd>
                        </dl>
                    </div>
                    <div class="goods-info">
                        <h4>商品信息</h4>
                        <table>
                            <thead>
                            <tr>
                                <th>商品ID</th>
                                <th>商品</th>
                                <th>商品图片</th>
                                <th>规格名称</th>
                                <th>商品属性</th>
                                <th>数量</th>
                                <th>单品价格</th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="order_goods" id="good">
                                <tr>
                                    <td class="w60">{$good.goods_id}</td>
                                    <td class="w60">{$good.goods_name}</td>
                                    <td class="w60"><div class="goods-thumb">
                                        <a href="{:url('Goods/goodsedit',array('id'=>$good['goods_id']))}" target="_blank"><img alt="" src="{$good['goods_image']}" /> </a></div></td>
                                    <td class="w80">{$good.spec_name}</td>
                                    <td class="w80">{$good.param}</td>
                                    <td class="w60">{$good.goods_num}</td>
                                    <td class="w100">{$good.goods_price}</td>

                                </tr>
                            </volist>
                        </table>
                    </div>
                    <div class="total-amount contact-info">
                        <h3>订单总额：￥{$order.total_price}</h3>
                    </div>
                    <div class="contact-info">
                        <h3>费用信息 </h3>
                        <dl>
                            <dt>小计：</dt>
                            <dd>{$order.total_price}</dd>
                            <dt>运费：</dt>
                            <dd>+{$order.total_price}</dd>
                        </dl>
                        <dl>
                            <dt>平台回扣：</dt>
                            <dd>{$system_balance_money}</dd>
                            <dt>佣金回扣：</dt>
                            <dd>{$member_balance_money}</dd>
                            <dt>商家所得金额：</dt>
                            <dd>{$shop_stream}</dd>
							<if condition="!empty($realname)">
							<dt style="width:150px">商家自提佣金（{$realname}）：</dt>
                            <dd>{$mention_balance.money}</dd>
							</if>                            
                        </dl>
						
                        <dl>
                            <dt>余额抵扣：</dt>

                            <dt>优惠券抵扣：</dt>

                            <dt>价格调整：</dt>
                            <dd>减：{$order.discount}</dd>
                        </dl>
                        <dl>
                            <dt>应付：</dt>
                            <dd><strong class="red_common">{$order.total_price}</strong></dd>
                        </dl>
                    </div>
                    <!--   <div class="contact-info">
                           <h3>操作信息</h3>
                           <dl class="row">
                               <dt class="tit">
                                   <label for="note">操作备注</label>
                               </dt>
                               <dd class="opt" style="margin-left:10px">
                                   <textarea id="note" name="note" style="width:600px" rows="6"  placeholder="请输入操作备注" class="tarea"></textarea>
                               </dd>
                           </dl>
                           <dl class="row">
                               <dt class="tit">
                                   <label for="note">可执行操作</label>
                               </dt>
                               <dd class="opt" style="margin-left:10px">

                                           <a class="ncap-btn-big ncap-btn-green" href="javascript:void(0)" data-url="" >22222</a>

                               </dd>
                           </dl>
                       </div>-->
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">


    function delfun() {
        // 删除按钮
        layer.confirm('确认删除？', {
            btn: ['确定'] //按钮
        }, function () {
            console.log("确定");
        }, function () {
            console.log("取消");
        });
    }


</script>
</body>
</html>